import numpy as np

def do_this():
    fd = open('rand-ints.txt', 'wt')
    r = np.random.randint(500, size=500)
    r = r.tolist()

    for e in r:
        fd.write(str(e) + ' ')

    fd.write('\n')
    fd.close()


if __name__ == '__main__':
    do_this()
